<div class="centercontent tables">
<div class="pageheader notab">
<h1 class="pagetitle">Modul Agenda</h1>
<span class="pagedesc">
Nama Agenda : <?php echo $nama_agenda; ?>, Tanggal Pelaksanaan : <?php echo $tanggal_agenda; ?>
</span> </div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper"><br />
<div class="tombol_tambah" align="right">   
<?php 
	$role_jabatan = $this->session->userdata('id_jabatan');
	if(($role_jabatan == '2' || $role_jabatan == '4' || $this->session->userdata('id_user') == $id_ketua) && ($status != 'Tidak diliput' && $status != 'Batal' && $status != 'Finish') && $this->session->userdata('id_organisasi') == $id_org) {
?>
<a href="<?php echo base_url(); ?>index.php/agenda_tim/add_process/<?php echo $id_agenda; ?>"><button class="stdbtn btn_blue">Tambah Anggota Tim</button></a>
<?php } ?>
<button onclick="location.href='<?php echo base_url(); ?>index.php/agenda/detail_agenda/<?php echo $id_agenda; ?>'" class="stdbtn btn_orange"><< Kembali ke Detail Agenda</button>
</div>
<div class="contenttitle2">
<h3>Daftar Tim Pelaksana</h3>
</div>
<!--contenttitle-->
<?php if($agenda_tim->num_rows() > 0){?>
<table class="stdtable" id="dyntable" border="0" cellpadding="0" cellspacing="0">
<colgroup><col class="con0" /><col class="con1" /><col class="con0" /><col class="con1" /><col class="con0" /></colgroup> 
<thead> 
<tr>
	<th class="head0">Nama Anggota</th>
	<th class="head1">Kontak</th>
	<th class="head0">Tugas</th>
	<?php 
	$role_jabatan = $this->session->userdata('id_jabatan');
	if(($role_jabatan == '2' || $role_jabatan == '4' || $this->session->userdata('id_user') == $id_ketua) && ($status != 'Tidak diliput' && $status != 'Batal' && $status != 'Finish') && $this->session->userdata('id_organisasi') == $id_org) {
?>
	<th class="head0">Aksi</th>
	<?php } ?>
</tr>
</thead> 
<tfoot> 
	<th class="head0">Nama Anggota</th>
	<th class="head1">Kontak</th>
	<th class="head0">Tugas</th>
		<?php 
	$role_jabatan = $this->session->userdata('id_jabatan');
	if(($role_jabatan == '2' || $role_jabatan == '4' || $this->session->userdata('id_user') == $id_ketua) && ($status != 'Tidak diliput' && $status != 'Batal' && $status != 'Finish') && $this->session->userdata('id_organisasi') == $id_org) {
?>
	<th class="head0">Aksi</th></tr>
		<?php } ?>
</tfoot> 
<tbody>
	<?php 
						foreach($agenda_tim->result() as $row){			
			 		?>
	<tr class="gradeX">
	<td><?php echo $row->nama_anggota; ?></td>
	<td><?php echo $row->no_telepon; ?></td>
	<td><?php echo $row->nama_tugas; ?></td>
				<?php 
	$role_jabatan = $this->session->userdata('id_jabatan');
	if(($role_jabatan == '2' || $role_jabatan == '4' || $this->session->userdata('id_user') == $id_ketua) && ($status != 'Tidak diliput' && $status != 'Batal' && $status != 'Finish') && $this->session->userdata('id_organisasi') == $id_org) {
?>
	<td align="center">
	<a href="<?php echo base_url().'index.php/agenda_tim/hapus_agenda_tim/'.$row->id_tim; ?>" class="btn btn4 btn_yellow btn_trash" alt="Delete" title="Delete" onclick="return confirm('Apa Anda yakin untuk menghapus data ini?')" ></a>
  </td>
  		<?php } ?>
  </tr>
	 <?php
					  }
			  		?> 
</tbody>
</table>
<?php } else { echo 
						 '<div class="notibar msginfo">
							<p>Data Tim Pelaksana Belum Ada.</p>
						  </div>';
					}
			  		?> 
<!--contenttitle--></div>
<!--contentwrapper--> </div>
<!-- centercontent -->